package object.p2pipcam.nativecaller;

import android.content.Context;

public class NativeCaller {
	/** Called when the activity is first created. */
	static {
		System.loadLibrary("ffmpeg");
		System.loadLibrary("object_jni");
	}

	private static final String LOG_TAG = "NativeCaller";
//	// search
//	public native static void StartSearch(Context object);
//
//	public native static void StopSearch();

	// init
	public native static void Init();

	public native static void Free();

	// connect
	public native static int Login(Context object, String did, String user, String pwd);

	public native static int Logout(int _id);

	// live-stream
	public native static int StartPPPPLivestream(Context object , int _id, int streamid);

	public native static int StopPPPPLivestream(int _id);

//	// sound
//	public native static int PPPPStartAudio(String did);
//
//	public native static int PPPPStopAudio(String did);
//
//	// talk
//	public native static int PPPPStartTalk(String did);
//
//	public native static int PPPPStopTalk(String did);
//
//	public native static int PPPPTalkAudioData(String did, byte[] data, int len);
//
//	// ptz
//	public native static int PPPPPTZControl(String did, int command);
//
//	public native static int PPPPCameraControl(String did, int param, int value);
//
//	public native static int PPPPNetworkDetect();
//
//	public native static void PPPPInitial();

}